const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin')

const htmlWebPackPlugin = new HtmlWebpackPlugin({
  title: 'MobX概念模型',
  template: './src/App.html',
});

module.exports = {
  mode: 'development',
  entry: './src/App.js',
  output: {
    path: path.resolve(__dirname, 'dist'),
    filename: 'mobx-concept.bundle.js'
  },
  devServer: {
    port: 9000,
    compress: true,
  },
  plugins: [
    htmlWebPackPlugin,
  ],
};